home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / tex / xtexcad-.000 / xtexcad- / orig_src / graphics.h < prev    next >
C/C++ Source or Header  |  1993-03-04  |  4KB  |  112 lines

  1. /* xtexcad  V1.2 - graphic editor for LaTeX */
  2. /* 1991 by K.Zitzmann */
  3. /* header-file graphics.h */
  4.  
  5. #ifndef GRAPHICSH
  6. #define GRAPHICSH
  7.  
  8.  
  9. /* patch for Data General by JM , all patches by JM are marked with JM ! */
  10. extern int black_white_patch;
  11.  
  12.  
  13. /* prototypes */
  14.  
  15. void shorten(int *x, int *y);
  16. void make_GCcontext(void);
  17. void PointerPosition(int *x, int *y, unsigned int *mask);
  18. void set_TM_btn1_first(Widget w, XEvent *event, String *id, Cardinal *num); 
  19. void btn1_press_first(Widget w, XEvent *event, String *id, Cardinal *num);
  20. void set_TM_btn1_second(void);
  21. void btn1_press_second(Widget w, XEvent *event, String *id, Cardinal *num);
  22. void set_first(void);
  23. void enable_tracker(void);
  24. void disable_tracker(void);
  25. void track_it(int *xo, int *yo);
  26. void dummy(void);
  27. void leaving(void);
  28. void zoomed2real(float *x, float *y);
  29. void real2zoomed(float *x, float *y);
  30. int ggt(int a, int b);
  31. int valid_line_coords(int x_or, int y_or, int *x_ret, int *y_ret);
  32. int valid_vector_coords(int x_or, int y_or, int *x_ret, int *y_ret);
  33. void init_l_slope(void);
  34. void l_insert(float value, int x, int y);
  35. void init_a_slope(void);
  36. void a_insert(float value, int x, int y);
  37. void graphics_init(void);
  38. void left(void);
  39. void set_zoom_window(void);
  40. void frame_track(int *x0, int *y0);
  41. void zoom_it(void);
  42. void clear_zoom(void);
  43. void cancel_zoom(void);
  44. int sorry_msg(void);
  45. void refresh(Widget cmd, char id, caddr_t call_data);
  46. void init_prompt_text();
  47. void cancel_text();
  48. void ok_text();
  49. void manage_text_input();
  50. void show_zoomed_objects();
  51. void set_text_input();
  52. void valid_length(int x_or, int y_or, int *x_ret, int *y_ret);
  53. void draw_vector_marker(float a1, float a2, float e1, float e2);
  54. void norm_rectangle(float *x, float *y, float *h, float *v);
  55. void init_text_and_position(void);
  56. void box_text(Widget cmd, char id, caddr_t call_data);
  57. void query_box_text_and_position(void);
  58. void print_box_text(char *a,float b, float c, float d, float e, char *f);
  59. void valid_kreis_coords(int x, int y, int *h, int *v,int *rad);
  60. void valid_disc_coords(int x, int y, int *h, int *v,int *rad);
  61. void DrawOval(int x_old,int y_old,int h_old,int v_old);
  62. void query_ask_erase(void);
  63. void perform_erase(void);
  64. void init_ask_erase(void);
  65. void valid_snap_coords(int *x, int *y);
  66. void snapPointerPosition(int *x, int *y, unsigned int *mask);
  67. void draw_the_shadow(void *object,char id);
  68. void init_text_adjustment(void);
  69. void adjust_text(Widget cmd, char id, caddr_t call_data);
  70. void query_text_adjustment(void);
  71. void newline(void);
  72. void print_head(char ch);
  73. void leave_translation(void);
  74. void textedit(void);
  75. int number_of_text(void);
  76. void correct_text_error(void);
  77. void beende_textedit(void);    
  78. void fb_textedit(void);
  79. int fb_number_of_text(void);
  80. void fb_correct_text_error(void);
  81. void fb_beende_textedit(void);    
  82. void fb_delete_textedit(void);
  83. void db_textedit(void);
  84. int db_number_of_text(void);
  85. void db_correct_text_error(void);
  86. void db_beende_textedit(void);    
  87. void db_delete_textedit(void);
  88. void print_text_text_marker(char *pos, float x, float y, char *txt);
  89. void delete_textedit(void);
  90. void move_base(Widget cmd, char typ, caddr_t call_data);
  91. void manage_curve();
  92. void entry_bezier();
  93. void DrawBezier(float ax, float ay, float ex, float ey, float sx, float sy);
  94. void set_lastBezier_press(void);
  95. void cancel_curve(void);
  96. void exit_curve();
  97.  
  98.  
  99.  
  100.  
  101. extern int line_slope;
  102. extern int slope_line;
  103. extern int arrow_slope;
  104. extern int slope_arrow;
  105. extern int line_length;
  106. extern int circle_diameter[];
  107. extern int disc_diameter[];
  108. extern int rast_height;
  109. extern Boolean visible;
  110.  
  111. #endif
  112.